package com.learn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class App {
    public static void main( String[] args ){
    	ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
    	//无任何配置下的测试
    	//context.getBean(RedisSimpleTest.class).show();
    	
    	//单机版测试，集群测试，哨兵测试
    	RedisUtil redisUtil = context.getBean(RedisUtil.class);
    	redisUtil.set("test2", "ttttttt");
    	System.out.println(redisUtil.get("test2"));
    	
    	context.close();
    }
}
